package com.topone.repository;

import com.topone.dataObject.PayNotification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NotificationRepository extends JpaRepository<PayNotification,String> {

    PayNotification findByOutTradeNo(String tradeNo);

    List<PayNotification> findByBussinessIdAndStatusAndFlag(String bussinessId, Integer status, String type);
}
